package de.puc.defencetower.view.tui.console;

import java.util.Formatter;

import org.apache.log4j.Logger;

import de.puc.defencetower.model.Map;

public class StatsView {
	
	private static Logger logger = Logger.getLogger("de.puc.defencetower.MapWindow");
	
	private Map map;

	public StatsView(Map map){
		this.map = map;
	}
	
	public void print(){
		@SuppressWarnings({ "resource", "deprecation" })
		Formatter s = new Formatter().format("Wave: %-2d | Gold: %5d | Live: %2d | Seconds to the next Spawn: %2d %n", map.getMonstersSpawned(), map.getGold(), map.getLive(), map.getSecondsToNextSpawn().getSeconds());
		logger.info(s);
	}
}
